<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/update}" method="post">
    <input type="hidden" name="eid" th:value="${emp.eid}">
    年龄：<input name="ename" th:value="${emp.ename}"><br>
    年龄：<input name="age" th:value="${emp.age}"><br>
    性别：
    <input type="radio" name="sex" value="男" th:checked="${emp.sex=='男'}">男
    <input type="radio" name="sex" value="女" th:checked="${emp.sex=='女'}">女
    <br>
    <!--${#strings.contains(${emp.hobby}是错的${#strings.contains({emp.hobby}是对的不能$套$-->
    爱好：<input type="checkbox" name="hobby" value="踢足球" th:checked="${#strings.contains({emp.hobby},'踢足球')}">踢足球
    <input type="checkbox" name="hobby" value="打篮球" th:checked="${#strings.contains({emp.hobby},'打篮球')}">打篮球
    <input type="checkbox" name="hobby" value="羽毛球" th:checked="${#strings.contains({emp.hobby},'羽毛球')}">羽毛球
    部门：
    <select name="did">
        <option>-请选择-</option>
        <option th:each="d : ${dept}"
                th:text="${d.dname}"
                th:value="${d.did}"
                th:selected="${d.did==emp.did}"
        ></option>

    </select>

    <input type="submit" value="修改">
</form>


</body>
</html>